class Student {
    private String studentId;
    private String name;
    private String birthDate;
    private String department;

    public Student(String studentId, String name, String birthDate, String department) {
        this.studentId = studentId;
        this.name = name;
        this.birthDate = birthDate;
        this.department = department;
    }

    public String getInfo() {
        return "Student ID: " + studentId + "\nName: " + name + "\nBirth Date: " + birthDate + "\nDepartment: " + department;
    }
}

class Undergraduate extends Student {
    private String counselor;

    public Undergraduate(String studentId, String name, String birthDate, String department, String counselor) {
        super(studentId, name, birthDate, department);
        this.counselor = counselor;
    }


    public String getInfo() {
        return super.getInfo() + "\nCounselor: " + counselor;
    }
}

class Graduate extends Student {
    private String supervisor;

    public Graduate(String studentId, String name, String birthDate, String department, String supervisor) {
        super(studentId, name, birthDate, department);
        this.supervisor = supervisor;
    }


    public String getInfo() {
        return super.getInfo() + "\nSupervisor: " + supervisor;
    }
}

public class school {
    public static void main(String[] args) {
        Undergraduate undergrad = new Undergraduate("12345", "久美子", "2000-01-01", "音乐", " 泷井");
        Graduate grad = new Graduate("67890", "秀一", "1999-05-15", "历史", " 约翰");

        System.out.println("Undergraduate Info:");
        System.out.println(undergrad.getInfo());
        System.out.println("\nGraduate Info:");
        System.out.println(grad.getInfo());
    }
}

